<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/decorators/taglibs.jsp"%>
<div class="w1a">
<div class="w2">系統 » 系統權限管理 » 修改權限</div>
<form:form modelAttribute="roleAuthForm" id="roleAuthForm" action="${appPath}/roleAuth/update.htm" method="post">
	<form:hidden id="version" path="version" />
	<form:hidden id="roleSeq" path="roleSeq" />
	<table width="100%" border="0" cellspacing="0" cellpadding="6">
	    <tr>
			<td width="80" align="right">角色名稱：</td>
			<td style="padding:5px;"><form:input size="30" id="authName" path="authName" /></td>
	    </tr>
	    <tr>
			<td colspan="2">
				<fieldset>
					<legend>資料權限</legend><br/>
					<form:checkbox id="roleAuth" path="roleAuth" value="admin"/>系統管理者<br/><br/>
					議案表單：<form:checkbox id="roleAuth" path="roleAuth" value="formUser"/><br/><br/>
					議案影像：<form:checkbox id="roleAuth" path="roleAuth" value="subAdmin"/>議事管理&nbsp;
					<form:checkbox id="roleAuth" path="roleAuth" value="imgUser"/>一般使用者&nbsp;
				</fieldset>
			</td>
    	</tr>
		<tr>
			<td colspan="2">
				<a href="#do" class="easyui-linkbutton" onClick="save($('#roleAuthForm'));">送出</a>
				<a href="${appPath}/roleAuth.htm" class="easyui-linkbutton">返回</a>
			</td>
		</tr>
	</table>			
</form:form>
</div> 
<script>
function save( formid ){
	formid.form('submit', {
	    success: function(data){ $.messager.alert('訊息', '修改完成'); }
	});
}
</script>